
		

<div class="advertising">
<?php 
	
	$tblBanner = new Zendvn_Model_Table_Slider();
	$arrBanner = $tblBanner->listBanner($this->arrParam);
	if(!empty($arrBanner)){
		$v = $arrBanner;
		$config = new Zendvn_Controller_Config(array('module' => 'admin', 'fileConfig' => 'slider.ini'));
		$itemConfig = $config->getConfig('slider');
		$name		= Zendvn_Filter_Filter::filterContent($v['name']);
		$link		= empty($v['link'])?'javascript:void(0);':$v['link'];
		$description = Zendvn_Filter_Filter::filterContent($v['description']);
		
		$picture 	= $v['picture'];
		if(file_exists($itemConfig['uploadDir'] . '/' . $picture) && !empty($picture)){
			$picture = $itemConfig['uploadUrl'] . '/' . $picture;
		}
	}
?>
            	<div class="adv_long">
                	<a href="<?php echo $link?>" target="_blank">
						<img src="<?php echo $picture?>" data-thumb="<?php echo $picture?>" alt="" title="" />
					</a>
                </div>
<?php 
	
	$tblBanner = new Zendvn_Model_Table_Slider();
	$arrBanner = $tblBanner->listAdv($this->arrParam);
	if(!empty($arrBanner)){
		$v = $arrBanner;
		$config = new Zendvn_Controller_Config(array('module' => 'admin', 'fileConfig' => 'slider.ini'));
		$itemConfig = $config->getConfig('slider');
		$name		= Zendvn_Filter_Filter::filterContent($v['name']);
		$link		= empty($v['link'])?'javascript:void(0);':$v['link'];
		$description = Zendvn_Filter_Filter::filterContent($v['description']);
		
		$picture 	= $v['picture'];
		if(file_exists($itemConfig['uploadDir'] . '/' . $picture) && !empty($picture)){
			$picture = $itemConfig['uploadUrl'] . '/' . $picture;
		}
	}
?>			
                <div class="adv_sort">
					<a href="<?php echo $link?>" target="_blank">
						<img src="<?php echo $picture?>" data-thumb="<?php echo $picture?>" alt="" title="" />
					</a>
				</div>
 </div>